package w2.onespace.service.serviceImp;

import bean.UserAddress;
import com.alibaba.dubbo.config.annotation.Reference;
import com.alibaba.dubbo.config.annotation.Service;
import w2.onespace.service.OrderService;
import w2.onespace.service.UserService;

import java.util.List;

/**
 * @Classname OrderServiceImpl
 * @Description TODO
 * @Date 2022/3/29 11:28
 * @Created by chenjin
 */
@Service
public class OrderServiceImpl implements OrderService {
    @Reference
    UserService userService;

    @Override
    public List<UserAddress> getList() {
        List<UserAddress> q1 = userService.getUserAddressList("q1");
        return q1;
    }

    @Override
    public void deleTe() {
        userService.deleteeById();
    }
}
